package com.le.tester.javaThink.fifth.chapter13_FuncProgramming;

import java.util.function.IntFunction;
import java.util.function.IntUnaryOperator;

/**
 * createTime：2021/8/6 16:49
 * description：当前的整型添加
 */
public class CurriedIntAdd {
    public static void main(String[] args) {
        IntFunction<IntUnaryOperator> intAdd = a -> b -> a + b;
        IntUnaryOperator add4 = intAdd.apply(4);
        System.out.println(add4.applyAsInt(5));
    }
}
